package router

import (
	"dha/app/handlers"

	"github.com/gin-gonic/gin"
)

func RegisterRouter(r *gin.Engine) {
	publicRouter := r.Group("/api/v1/public")

	publicRouter.GET("/config/:name", handlers.GetConfig)                // 获取配置信息
	publicRouter.POST("/config/:name", handlers.AddConfig)               // 添加配置信息
	publicRouter.GET("/config/list/:page/:perPage", handlers.ConfigList) // 配置列表

}
